/* jshint esversion: 6 */
export function parseHTML(html = '') {
    window.doc = new DOMParser().parseFromString(html, 'text/html');
    let aList = doc.querySelectorAll('tr:nth-child(n + 4) td a');
    let hrefList = [];
    for (let item of aList) {
        let url = decodeURI(item.href);
        if (url[url.length - 1] == '/') hrefList.push(url);
    }
    return hrefList;
}
